<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <form action="/getData" method="get">
    用户名：<input type="text" name="username"><br>
    密  码：<input type="password" name="password"><br>
    <input type="submit">
  </form>
  <a href="/aaa?type=1&name=phone">跳转</a>
  <button id="btn">跳</button>
  <script>
    document.getElementById('btn').onclick = function(){
      location.href= '/bbb?type=2&name=tv';
    }
  </script>
</body>
</html>